// pages/epercenter/percenter.js
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    headimg:'https://www.juquduo.com/static/resourse/yeshou/头像-1.png',
    name:'',
    bghei:app.globalData.winheight/6,
    boxhei:app.globalData.winwidth/5,
    boxwid:app.globalData.winwidth/5/88*60,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.setNavigationBarTitle({
        title: '个人中心',
      })
      this.setData({headimg:app.globalData.userInfo.avatarUrl,name:app.globalData.userInfo.nickName})

  },
  myactive(){
    wx.redirectTo({
      url: './eactive',
    })
  },
  zhuye(){
    wx.redirectTo({
      url: '../ayeshou/yeshou',
    })
  },

})